package org.rabbitmq.mq02.common;
import lombok.Data;
import org.rabbitmq.mq02.mqServer.core.BasicProperties;

import java.io.Serializable;

/**
 * 这里类表示返回数据的具体参数
 * 是服务器给消费者提供的订阅消息
 * consumerTag其实是channelId.
 * • basicProperties和body共同构成了Message.
 */
@Data
public class SubScribeReturns extends BasicReturns implements Serializable {
    private String consumerTag;
    private BasicProperties basicProperties;
    private byte[] body;
}
